import request from "../utils/request.js"


//邀请码
export function UserQrcode() {
	return request({
		url: "/User/UserQrcode"
	})
}

//我的店铺
export function MyShop(data) {
	return request({
		url: "/User/MyShop",
		data
	})
}

//我的店铺
export function ShopQrcode(data) {
	return request({
		url: "/User/ShopQrcode",
		data
	})
}

//店铺成员
export function ShopMembers(data) {
	return request({
		url: "/User/ShopMembers",
		data
	})
}

//下级提现信息
export function DownTi(data) {
	return request({
		url: "/User/DownTi",
		data
	})
}

//通过
export function DownTiSure(data) {
	return request({
		url: "/User/DownTiSure",
		method: 'post',
		data
	})
}

//驳回
export function DownTiBack(data) {
	return request({
		url: "/User/DownTiBack",
		method: 'post',
		data
	})
}


//转增优惠券
export function TransferQuanList(data) {
	return request({
		url: "/User/TransferQuanList",
		data
	})
}

//转增优惠券
export function TransferQuan(data) {
	return request({
		url: "/User/TransferQuan",
		method: 'post',
		data
	})
}

//我的券
export function MyQuan(data) {
	return request({
		url: "/User/MyQuan",
		data
	})
}

/**我的优惠券新
 * @param {Object} data
 */
export function QuanList(data) {
	return request({
		url: "/user/QuanList",
		data
	})
}

//联系店长
export function ContactShop() {
	return request({
		url: "/Index/ContactShop"
	})
}


//积分转余额
export function Exchange() {
	return request({
		url: "/User/Exchange"
	})
}
//积分转余额
export function postExchange(data) {
	return request({
		url: "/User/Exchange",
		data,
		method: 'post'
	})
}

//联系店长
export function SonComOrders() {
	return request({
		url: "/User/SonComOrders"
	})
}